<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Clb\V20180317\Models;
use TencentCloud\Common\AbstractModel;

/**
 * Operation protection information of cloud load balancer.
 *
 * @method string getLoadBalancerId() Obtain CLB instance ID.
 * @method void setLoadBalancerId(string $LoadBalancerId) Set CLB instance ID.
 * @method boolean getProtectState() Obtain Protected status. true means operation protection is enabled. false means operation protection is disabled.
 * @method void setProtectState(boolean $ProtectState) Set Protected status. true means operation protection is enabled. false means operation protection is disabled.
 * @method string getOperatorUin() Obtain Specifies the uin for operation protection setting.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setOperatorUin(string $OperatorUin) Set Specifies the uin for operation protection setting.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getDescription() Obtain Specifies the description when setting operation protection.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setDescription(string $Description) Set Specifies the description when setting operation protection.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getModifyTime() Obtain Specifies the last modification time.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setModifyTime(string $ModifyTime) Set Specifies the last modification time.
Note: This field may return null, indicating that no valid values can be obtained.
 */
class LBOperateProtectInfo extends AbstractModel
{
    /**
     * @var string CLB instance ID.
     */
    public $LoadBalancerId;

    /**
     * @var boolean Protected status. true means operation protection is enabled. false means operation protection is disabled.
     */
    public $ProtectState;

    /**
     * @var string Specifies the uin for operation protection setting.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $OperatorUin;

    /**
     * @var string Specifies the description when setting operation protection.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Description;

    /**
     * @var string Specifies the last modification time.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $ModifyTime;

    /**
     * @param string $LoadBalancerId CLB instance ID.
     * @param boolean $ProtectState Protected status. true means operation protection is enabled. false means operation protection is disabled.
     * @param string $OperatorUin Specifies the uin for operation protection setting.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Description Specifies the description when setting operation protection.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $ModifyTime Specifies the last modification time.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("LoadBalancerId",$param) and $param["LoadBalancerId"] !== null) {
            $this->LoadBalancerId = $param["LoadBalancerId"];
        }

        if (array_key_exists("ProtectState",$param) and $param["ProtectState"] !== null) {
            $this->ProtectState = $param["ProtectState"];
        }

        if (array_key_exists("OperatorUin",$param) and $param["OperatorUin"] !== null) {
            $this->OperatorUin = $param["OperatorUin"];
        }

        if (array_key_exists("Description",$param) and $param["Description"] !== null) {
            $this->Description = $param["Description"];
        }

        if (array_key_exists("ModifyTime",$param) and $param["ModifyTime"] !== null) {
            $this->ModifyTime = $param["ModifyTime"];
        }
    }
}
